package com.huawei.api.utils;

/**
 * 字符串转换工具
 */
public class StringConvertUtil {

    private static final boolean enableConvert = true;
    public static String convert(String args, String separator) {
        if(!enableConvert){
            separator = "";
        }
        char[] charArray = args.toCharArray();
        StringBuilder sb = new StringBuilder();
        for (char c : charArray) {
            sb.append(c);
            sb.append(separator);
        }
        return sb.toString();
    }
}
